<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<div id="dlg" class="easyui-dialog" title="添加、修改用户" style="width:570px;height:300px;"
       data-options="
       url:'',
       resizable:true,
       modal:true,
       closed:true,
       buttons:[{
			text:'保存',
			iconCls:'icon-ok',
			handler:function(){saveDialog()}
		},{
			text:'关闭',
			iconCls:'icon-cancel',
			handler:function(){closeDialog()}
		}]
 "> 
 <form id="fm" method="post">
 	<table cellspacing="5px;">
 		<input type="hidden" id="id" name="id"/>
 		<input type="hidden" id="dept_id" name="dept_id" />
 		<tr>
 			<td>登陆账号：</td>
 			<td><input type="text" id="username" name="username" class="easyui-validatebox" required="true"/></td>
 			<td>用户名称：</td>
 			<td><input type="text" id="nickname" name="nickname" class="easyui-validatebox" required="true"/></td>
 		</tr>
 		<tr>
 			<td>所在部门：</td>
 			<td><input type="text" id="dept_name" name="dept_name" class="easyui-validatebox" required="true" readonly="readonly" /></td>
 			<td colspan="2"><a href="javascript:openDeptChooseDialog()" class="easyui-linkbutton" >选择部门</a></td>
 		</tr>
 		<tr>
 			<td>办公电话：</td>
 			<td><input type="text" id="zuoji" name="zuoji"  class="easyui-validatebox" data-options="required:false"/></td>
 			<td>手机：</td>
 			<td><input type="text" id="shouji" name="shouji"  class="easyui-validatebox" data-options="required:true"/></td>
 		</tr>
 		<tr>
 			<td>邮箱：</td>
 			<td><input type="text" id="mail" name="mail"  class="easyui-validatebox" data-options="required:true"/></td>
 			<td>身份证号：</td>
 			<td><input type="text" id="idcard" name="idcard"  class="easyui-validatebox" data-options="required:true"/></td>
 		</tr>
        <tr>
 			<td>性别：</td>
 			<td>
 			<selected id="sex" name="sex" class="easyui-combobox" required="false">
 				<option value="男" selected>男</option>
 				<option value="女">女</option>
 			</selected>
 			</td>
 			<td>状态：</td>
 			<td>
 			<selected id="status" name="status" class="easyui-combobox" required="true">
 				<option value="Y" selected>启用</option>
 				<option value="N">禁用</option>
 			</selected>
 			</td>
 		</tr>
 	</table>
 </form>
</div>